import request from '@/utils/request'

/**
 * 查询华才汇盐学院信息分页列表
 */
export function pageListCollege(query) {
    return request({
        url: '/hchy/college/pageList',
        method: 'get',
        params: query
    })
}

/**
 * 查询华才汇盐学院信息所有列表
 */
export function listCollege(query) {
    return request({
        url: '/hchy/college/list',
        method: 'get',
        params: query
    })
}

/**
 * 查询华才汇盐学院信息详细
 */
export function getCollege(id) {
    return request({
        url: '/hchy/college/' + id,
        method: 'get'
    })
}

/**
 * 新增华才汇盐学院信息
 */
export function addCollege(data) {
    return request({
        url: '/hchy/college',
        method: 'post',
        data: data
    })
}

/**
 * 修改华才汇盐学院信息
 */
export function updateCollege(data) {
    return request({
        url: '/hchy/college',
        method: 'put',
        data: data
    })
}

/**
 * 删除华才汇盐学院信息
 */
export function delCollege(id) {
    return request({
        url: '/hchy/college/' + id,
        method: 'delete'
    })
}
